package fangzhiyi.work.auto;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/20 19:03
 * @description
 */
public class CarTest {
    public static void main(String[] args) {
        Auto auto = new Auto(4,"黑色",1500,40);
        auto.addSpeed(50);
        auto.minusSpeed(20);
        auto.stop();

        Car car = new Car(4,"白色",1200,30,"空调不开","不唱歌");
        car.addSpeed(50);
        car.minusSpeed(40);
        car.stop();
    }

}
